#include <stdio.h>

int main(int argc, char* argv[])
{


int i;
unsigned int n;
unsigned long long prevSum  = 2 ;
unsigned long long sum=3;
unsigned long long temp;




if (argc != 2)
{
	printf("Usage [executable] [Number of fibonacci series elements] \n");
	return -1;
}
else
{
	n = atoi(argv[1]);
	if( n < 0 || n > 65535)
	{
		printf("Out of bounds\n");
		return -1;
	}
}
	
        

printf("Fibonacci sequence is...\n");

printf("0\n1\n1\n2\n3\n");

for(i=0; i<(n-4);  i++)
{
	temp = sum + prevSum;
	prevSum = sum;
	sum = temp;
	printf("%llu\n",sum);
}

return 0;
}
